package decorator

import decorator.mycoffee.{Decaf, LongBlack}
import decorator.mydecorator.Chocolate

object coffeeBar {
  def main(args: Array[String]): Unit = {
    print("caffeeBar")
    val order: Drink = new Decaf
    println("order1 price:" + order.cost())
    println("order1 desc:" + order.getDescription())
    println("---------------------")
    var order2: Drink = new LongBlack
    order2 = new Chocolate(order2)
    order2 = new Chocolate(order2)
    println("order1 price:" + order2.cost())
    println("order1 desc:" + order2.getDescription())
  }

}
